package com.ldw.chapter3.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * <p>Title: UserDetailsServiceImpl</p>
 * <p>Description: </p>
 *
 * @author: dwLiu
 * @date: 2020/3/22 15:06
 */
@Service
public class UserDetailsServiceImpl implements UserDetailsService {
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        // AuthorityUti1s.commaSeparatedStringToAuthorityList是Spring Security提供的，该方法用于将逗号隔开的权限集字符串切割成可用权限对象列表

//        AuthorityUtils.commaSeparatedStringToAuthorityList();
        return null;
    }
}
